-- GENERATED SPELL FOR [Splinter Fist Firemonger] --


function spell0_1251(pUnit, Event) --@Fire Shield II,n/a--
pUnit:FullCastSpellOnTarget(184,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1251', 1000, 1)
end

function spell1_1251(pUnit, Event) --@Quick Flame Ward,n/a--
pUnit:FullCastSpellOnTarget(4979,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1251', 11500, 1)
end

function Sorts_1251(pUnit, Event)
local choix_sorts_1251 = math.random(0, 1)
if choix_sorts_1251 == 0 then
pUnit:RegisterEvent('spell0_1251', 1, 1)
end
if choix_sorts_1251 == 1 then
pUnit:RegisterEvent('spell1_1251', 1, 1)
end
end

function mob1251_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1251', math.random(1500, 3000), 1)
end

function mob1251_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1251_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1251_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1251, 1, 'mob1251_Action')
RegisterUnitEvent(1251, 2, 'mob1251_Leave')
RegisterUnitEvent(1251, 3, 'mob1251_Kill')
RegisterUnitEvent(1251, 4, 'mob1251_Die')
